<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
  <title>权限分配管理</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      margin: 20px;
    }
    h1 {
      color: #333;
    }
    table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 20px;
    }
    th, td {
      padding: 10px;
      border: 1px solid #ddd;
      text-align: left;
    }
    th {
      background-color: #f4f4f4;
    }
    .btn {
      padding: 5px 10px;
      background-color: #28a745;
      color: white;
      border: none;
      cursor: pointer;
    }
    .btn:hover {
      background-color: #218838;
    }
  </style>
</head>
<body>
<h1>权限分配管理</h1>
<form action="${pageContext.request.contextPath}/acl_roleDel" method="post">
  <table>
    <thead>
    <tr>
      <th>权限ID</th>
      <th>权限名称</th>
      <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach var="permission" items="${acl_rolesss}">
    <tr>
        <td>${permission.role_id}</td>
        <td>${permission.role_name}</td>
        <td>
          <a href="selectAcl_permissionByRoleId?id=${permission.role_id}">分配权限</a>
          <a href="deleteUser?id=${user.id}" onclick="return confirm('确认删除用户 ${permission.role_name} ?')">删除</a>
        </td>
    </tr>
      </c:forEach>
    </tbody>
  </table>
</form>
</body>
</html>

